import request from '../utils/request'

export const ReceiveTask = (data) => {
    return request(`/api/updateTaskStatus`, {
      method: 'put',
      data
    })
  }
export const ExcTask = (params) => {
  return request(`/api/queryexecstafftasksituation`,{
      params
  })
}
  //获取当前登录人
export const GetLoginPersonName = () => {
  return request(`/api/my_employee_management`)
}


// 获取作业内容
export const GetTaskContent = (code) => {
  return request(`/api/task_content/${code}`)
}

// 根据作业内容 code 查询检查表
export const GetCheckTable = (code) => {
  return request(`/api/check_table/${code}`)
}


// 查询暂存问题
export const GetProblems = (params) => {
  return request('/api/check_record_temporary', {
    params
  })
}

// 删除暂存问题
export const DeleteProblem = (id) => {
  return request(`/api/check_record/${id}`, {
    method: 'delete'
  })
}


// 计划检查数 +1
export const AddCheckTimes = (params) => {
  return request(`/api/addCheckTimes`, {
    params
  })
}